import { ajhttp } from '@/utils/http'
import { useTenantSystemStore } from '@/stores'


/**
 * 创建服务订单
 */
export const confirmOrder = (data) => {
    return ajhttp({
        method: 'POST',
        url: `/system/service/confirmOrder`,
        data
    })
}

/**
 * 获取服务列表
 */
export const list = (data) => {
    return ajhttp({
        method: 'GET',
        url: `/system/service/list`,
        data
    })
}

/**
 * 编辑/新增服务
 */
export const save = (data) => {
    return ajhttp({
        method: 'POST',
        url: `/system/service/save`,
        data
    })
}

/**
 * 编辑/新增服务
 */
export const remove = (id) => {
    return ajhttp({
        method: 'POST',
        url: `/system/service/delete?id=${id}`,
    })
}

/**
 * 获取服务状态角标统计
 */
export const userBadgeSummary = () => {
    return ajhttp({
        method: 'GET',
        url: `/system/service/userBadgeSummary`
    })
}
